export const namespace = "stadiumList";

export const calcColumns = (params) => {
  const { operate } = params;
  const columns = [
    {
      width: 180,
      title: "编号",
      dataIndex: "id",
      hideInSearch: true,
    },
    {
      title: "场馆名称",
      dataIndex: "venueName",
      width: 150,
      ellipsis: true,
      copyable: true,
    },
    {
      title: "所属区域",
      dataIndex: "region",
      hideInSearch: true,
      ellipsis: true,
    },
    {
      title: "场馆地址",
      dataIndex: "venueAddress",
      hideInSearch: true,
      ellipsis: true,
    },
    {
      title: "联系人",
      dataIndex: "contacts",
      hideInSearch: true,
    },
    {
      title: "联系电话",
      dataIndex: "contactsPhone",
      hideInSearch: true,
    },
    {
      title: "营业状态",
      dataIndex: "venueStatus",
      valueType: "radio",
      valueEnum: {
        1: { text: "禁用", status: "Error" },
        0: { text: " 启用", status: "Processing" },
      },
    },
  ];

  columns.push(operate);
  return columns;
};
